package com.am.service;

import com.am.cell.ICell;
import com.am.link.HippoCampus;

public class HippoCampusFactory {
	public HippoCampus createHippoCampusLink(ICell src, ICell des) {
		// check whether this hippocampus already exists
		HippoCampus ret = src.getHippoCampus(des);
		if (ret != null) {
			// we are going to strengthen this link
			ret.strengthenOnce();
		} else {
			ret = new HippoCampus(src, des);
			src.addHippoCampusLink(ret);
		}
		return ret;
	}
}
